home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume26 / freeze / patch01.1 next >
Encoding:
Text File  |  1991-11-30  |  5.5 KB  |  210 lines

  1. Newsgroups: comp.sources.misc
  2. From: leo@s514.ipmce.su (Leonid A. Broukhis)
  3. Subject:  v26i093:  freeze - Freeze/melt compression program, Patch01.1
  4. Message-ID: <1991Nov30.211840.4862@sparky.imd.sterling.com>
  5. X-Md4-Signature: 7b8bf2408a08a597b37c3b32d5ecbee6
  6. Date: Sat, 30 Nov 1991 21:18:40 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: leo@s514.ipmce.su (Leonid A. Broukhis)
  10. Posting-number: Volume 26, Issue 93
  11. Archive-name: freeze/patch01.1
  12. Environment: ISC, Xenix, SunOS, MS-DOS
  13. Patch-To: freeze: Volume 25, Issue 12-13
  14.  
  15. Here is the file statist.1 that was missing from the last patch. Please 
  16. cd into the freeze directory and unshar this file.
  17.  
  18. ================================================================
  19. #! /bin/sh
  20. # This is a shell archive.  Remove anything before this line, then feed it
  21. # into a shell via "sh file" or similar.  To overwrite existing files,
  22. # type "sh file -c".
  23. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  24. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  25. # Contents:  statist.1
  26. # Wrapped by kent@sparky on Sat Nov 30 15:11:20 1991
  27. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  28. echo If this archive is complete, you will see the following message:
  29. echo '          "shar: End of archive."'
  30. if test -f 'statist.1' -a "${1}" != "-c" ; then 
  31.   echo shar: Will not clobber existing file \"'statist.1'\"
  32. else
  33.   echo shar: Extracting \"'statist.1'\" \(3285 characters\)
  34.   sed "s/^X//" >'statist.1' <<'END_OF_FILE'
  35. X.PU
  36. X.TH STATIST 1 local
  37. X.SH NAME
  38. Xstatist  \-  calculate Huffman distribution for
  39. X.IR freeze "(1)"
  40. X.SH SYNOPSIS
  41. X.ll +8
  42. X.B statist
  43. X[
  44. X.B \-g...
  45. X]
  46. X.ll -8
  47. X.br
  48. X.SH DESCRIPTION
  49. XThe default table is tuned for both C texts and executable files (as in
  50. XLHARC). If you will freeze any other files (natural language texts,
  51. Xdatabases, images, fonts, etc.) you can calculate the matching
  52. Xpositions distribution using the
  53. X.B "`statist'"
  54. Xprogram, which calculates and displays the mentioned
  55. Xdistribution for the given file. It is useful for large (100K or more)
  56. Xfiles.
  57. X
  58. XThough the built-in position table is polyvalent, the tuning can increase
  59. Xthe compression rate up to one additional percent. (Observed mainly on
  60. Xtext files.)
  61. X.SH USAGE
  62. X.br
  63. X.B statist [\-g...] < sample_file
  64. X.in +8
  65. Xor
  66. X.in -8
  67. X.B gensample | statist [\-g...]
  68. X.br
  69. Xwhere
  70. X.B "`gensample'"
  71. Xis a program generating some sample stream of
  72. Xbytes similar to files to be frozen.
  73. X.PP
  74. XThe
  75. X.B \-g
  76. Xswitch has the same meaning as for
  77. X.IR freeze "(1)"
  78. Xand may be repeated.
  79. X.PP
  80. XYou can also see the intermediate values
  81. Xand watch their changes by pressing INTR key when you wish.
  82. X.PP
  83. XNote: If you use 
  84. X.B "gensample | statist"
  85. X, remember that INTR influence BOTH
  86. Xprocesses !!
  87. X.br
  88. XThe results have the following format:
  89. X.br
  90. X.I "n1 n2 n3 n4 n5 n6 n7 n8"
  91. X(uncertainty =
  92. X.I x)
  93. X.br
  94. XAverage match length:
  95. X.I xx.yy
  96. X.br
  97. XPercentile 99.9:
  98. X.I p999
  99. X.br
  100. XPercentile 99.5:
  101. X.I p995
  102. X.br
  103. XPercentile 99.0:
  104. X.I p990
  105. X.br
  106. XPercentile 97.0:
  107. X.I p970
  108. X.br
  109. XPercentile 95.0:
  110. X.I p950
  111. X.br
  112. XPercentile 90.0:
  113. X.I p900
  114. X.br
  115. XPercentile 80.0:
  116. X.I p800
  117. X.br
  118. XPercentile 70.0:
  119. X.I p700
  120. X.br
  121. XPercentile 50.0:
  122. X.I p500
  123. X.br
  124. XSigma:
  125. X.I xx.yy
  126. X.br
  127. X.PP
  128. XHere
  129. X.I n1 \- n8
  130. Xare values of the calculated position table elements,
  131. Xuncertainty is a number which denotes validity of given results
  132. X(non-zero values of uncertainty indicate that the
  133. Xresults may be unusable). Other values (average match length,
  134. Xpercentiles and sigma) are FYI only.
  135. X.PP
  136. XYou may create the 
  137. X.IR /etc/default/freeze
  138. Xfile (if you don't like
  139. X.IR /etc/default/
  140. Xdirectory, choose another - in MS-DOS it is FREEZE.CNF in
  141. Xthe directory of FREEZE.EXE), which has the following format:
  142. X.in +8
  143. X.I name
  144. X=
  145. X.I "n1 n2 n3 n4 n5 n6 n7 n8"
  146. X.in -8
  147. X.I (name
  148. Xmust start in column 1). For example:
  149. X.ll +8
  150. X.br
  151. X---------- cut here -----------
  152. X.br
  153. X# This is freeze's defaults file
  154. X.br
  155. Xrussian=0 0 1 2 6 20 31 2   # The sample was mailx.lp (Russian)
  156. X.br
  157. Xenglish=0 0 1 2 7 16 36 0   # The sample was gcc.lp (English)
  158. X.br
  159. X# End of file
  160. X.br
  161. X---------- cut here -----------
  162. X.ll -8
  163. X.PP
  164. XIf you find values, which are better THAN DEFAULT both for text (C
  165. Xprograms) and binary (executable) files, please send them to me.
  166. X
  167. XImportant note: statist.c is NOT a part of freeze package, it is an
  168. Xaditional feature.
  169. X
  170. X.SH "SEE ALSO"
  171. Xfreeze(1), melt(1), fcat(1)
  172. X.SH "DIAGNOSTICS"
  173. XHuffman tree has more than 8 levels, reducing...
  174. X.in +8
  175. XSelf-explanatory, but sometimes reducing falls into infinite loop.
  176. X.in -8
  177. X.IR xxx K
  178. X.in +8
  179. XProgress indicator is written after each 4K of a file processed.
  180. X.in -8
  181. X.SH "BUGS"
  182. XSometimes use of the results with uncertainty = 1 (on a file)
  183. Xgives compression rate worse than default but use of the results
  184. Xwith uncertainty = 13 (on other file) works quite good.
  185. X.PP
  186. XFound bugs descriptions, incompatibilities, etc.  please send to
  187. Xleo@s514.ipmce.su.
  188. X
  189. END_OF_FILE
  190.   if test 3285 -ne `wc -c <'statist.1'`; then
  191.     echo shar: \"'statist.1'\" unpacked with wrong size!
  192.   fi
  193.   # end of 'statist.1'
  194. fi
  195. echo shar: End of archive.
  196. exit 0
  197. ================================================================
  198. -- 
  199. Leonid A. Broukhis | 89-1-95 Liberty St. | "BROUKHIS" is Hebrew for
  200. +7 095 494 6241 (h)| Moscow 123481 Russia|       "BENEDICTAE"
  201. +7 095 132 9475 (o)| (leo@s514.ipmce.su) |{...and the other says: "Fabulous!"}
  202.  
  203.  
  204. exit 0 # Just in case...
  205. -- 
  206. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  207. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  208. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  209. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  210.